package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcPatrolReminder;
import com.csun.cmny.provider.model.dto.patrol.PatrolReminderQueryDto;
import com.csun.cmny.provider.model.vo.patrol.PatrolReminderVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcPatrolReminderMapper extends Mapper<DmcPatrolReminder> {

    /**
     * 巡更提醒 - 分页查询
     *
     * @param patrolReminderQueryDto    the patrol reminder query dto
     *
     * @return  the patrol reminder vo list.
     */
    List<PatrolReminderVo> queryListWithPage(PatrolReminderQueryDto patrolReminderQueryDto);

    /**
     * 巡更提醒记录 - 待巡更
     *
     * @param date
     *
     * @return  the dmc patrol reminder
     */
    List<DmcPatrolReminder> queryWaitList(String date);

    /**
     * 更新巡更提醒 - 待巡更
     *
     * @param greatId   巡更棒ID
     * @param pointId   巡更点ID
     * @param patrolTime    巡更时间
     *
     * @return  the int.
     */
    Integer updateWait(Long greatId, Long pointId, String patrolTime);
    /*
    * 解绑巡更棒删除巡更提醒
    * */
    void deleteByPatrolId(Long deviceId);
    /*
     * 解绑巡更点删除巡更提醒
     * */
    void deleteByPointId(Long deviceId);
}